package com;

import com.mapper.PersonMapper;
import com.pojo.Person;
import com.util.MybatisUtils;
import org.apache.ibatis.session.SqlSession;
@@ -13,4 +14,12 @@ public class PersonTest {
        System.out.println(person);{
    }
        session.close();{
}
@Test
public void selectPersonByIdTest() {
    SqlSession session = MybatisUtils.getSession();
    PersonMapper mapper = session.getMapper(PersonMapper.class);
    Person person = mapper.selectPersonById(2);
    {
        System.out.println(person);
        session.close();
    }
}
